#!/bin/python
#coding=utf8
def loadConfig(config,configFile):
  f = open(configFile,'r')
  for line in f:
  	(key, val) = line.strip('\n').split('=')
  	config[key] = val
  f.close()
  
def saveConfig(config,configFile):
  f = open(configFile,'w')
  for key in config.keys():
    write_str = '%s=%s\n' % (key,config[key])
    f.write(write_str)
  f.close()
